/*
  Copyright � 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  ThanhNam ERP Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using VINETLIFE.DAL;
using VINETLIFE.DO;
/// <summary>
/// Summary description for cmsAccountBL
/// </summary>
namespace VINETLIFE.BL 
{
    public class cmsAccountBL 
    {
    	#region Private Variables
		cmsAccountDAL objcmsAccountDAL;
		#endregion
		
        #region Public Constructors
        public cmsAccountBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsAccountDAL=new cmsAccountDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsAccountDO objcmsAccountDO)
        {
            return objcmsAccountDAL.Insert(objcmsAccountDO);
        }

        public int Update(cmsAccountDO objcmsAccountDO)
        {
             return objcmsAccountDAL.Update(objcmsAccountDO);

        }

        public int Delete(cmsAccountDO objcmsAccountDO)
        {
             return objcmsAccountDAL.Delete(objcmsAccountDO);

        }

         public int DeleteAll()
        {
             return objcmsAccountDAL.DeleteAll();
        }

        public cmsAccountDO Select(cmsAccountDO objcmsAccountDO)
        {
            return objcmsAccountDAL.Select(objcmsAccountDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsAccountDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsAccountDAL.SelectAll();
        }

        public DataTable AccountInfo(int customerId)
        {
            return objcmsAccountDAL.AccountInfo(customerId);
        }
        public cmsAccountDO AccountInfoObject(int customerId)
        {
            return objcmsAccountDAL.AccountInfoObject(customerId);
        }
        public DataTable AccountInfo(string customerCode)
        {
            return objcmsAccountDAL.AccountInfo(customerCode);
        }
#endregion          
    
    }

}
